namespace DZRemoteController.Rules
{
	class MissionNoRule : OneNumberRule
	{
		public override bool IsActive
		{
			get { return GameController.State.IsMissionActive; }
			set { GameController.State.IsMissionActive = value; }
		}

		public override void Perform()
		{
			if (number != GameController.State.MissionNo)
			{
				IsActive = true;
				GameController.State.MissionNo = number;
			}
			base.Perform();
		}
	}
}